package fuckjava;

import java.math.BigDecimal;
import java.math.RoundingMode;

public class BigDecimalTes {

	public static void main(String[] args) {
		BigDecimal b = new BigDecimal("22.51");
		BigDecimal b1 = new BigDecimal("3");
		//System.out.println(b.divide(b1).setScale(3, RoundingMode.HALF_UP));
		System.out.println(b.divide(b1, 0, RoundingMode.HALF_UP).toString());
		System.out.println(22.51/3);
		System.out.println(new Integer(500).BYTES);
	}
}
